function Scheduler()
{
	var constraints = new Array();
	var possibleSchedules = new Array();
	var courses = new Array();
	this.addConstraint = addConstraint;
	this.getConstraints = getConstraints;
	this.removeConstraint = removeConstraint;
	this.addCourse = addCourse;
	this.getCourses = getCourses;
	this.removeCourse = removeCourse;
	this.generatePossibleSchedules = generatePossibleSchedules;
	this.viewSchedule = viewSchedule;
	function addConstraint(constraint)
	{
		constraints.unshift(constraint);
	}
	function getConstraints()
	{
		return constraints;
	}
	function removeConstraint(constraint)
	{
		for(var i = 0; i < constraints.length; i++)
		{
		  if(constraints[i] == constraint)
			  constraints.splice(i,1);
		}
	}
	function addCourse(course)
	{
		courses.unshift(course);
	}
	function getCourses()
	{
		return courses;
	}
	function removeCourse(course)
	{
		for(var i = 0; i < course.length; i++)
		{
		  if(courses[i] == course)
			  courses.splice(i,1);
		}
	}
	function generatePossibleSchedules()
	{
		var schedule;
		for(constraint in constraints)
		{
			
		}
	}
	function viewSchedule()
	{
		//???
	}
}